
# -*- coding: utf-8 -*-
from flask import Flask, request
app = Flask(__name__)
from flask_script import Manager, Shell
from flask_mail import Mail, Message
from threading import Thread
import os
import random,hashlib
seed = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
sa = []
for i in range(8):
  sa.append(random.choice(seed))
salt = ''.join(sa)
print(salt)
# app = Flask(__name__)
# app.config['MAIL_SERVER'] = 'smtp.qq.com'
# app.config['MAIL_PORT'] = 587
# app.config['MAIL_USE_TLS'] = True
# app.config['MAIL_USERNAME'] = '1075888691@qq.com'
# app.config['MAIL_PASSWORD'] = 'wcntcapibvqfjjfa'
# mail = Mail(app)
 
# msg = Message('her own words 密码找回', sender='1075888691@qq.com', recipients=['1075888691@qq.com'])
# msg.body = '您的"admin"账户密码已重置,新密码是：'
# with app.app_context():
#     mail.send(msg)
 
if __name__ == '__main__':
    app.run()
